package java6681.bank.menu;

import java6681.lesson04.Array6681;
import java6681.lesson04.ArraySortAndSearch6681;
import java6681.lesson04.Datas6681;
import java6681.lesson04.StoreList6681;

import java.util.Scanner;
/*
* while循环 界面
* 当输入0时boolean型isFlag为false结束循环
* switch 语句控制输入数字 输出不同的方法
* */
public class Menu6681 {
    public static void main(String[] args) {
        boolean isFlag = true;
        while(isFlag){
            Scanner scan = new Scanner(System.in);
            System.out.println("==============212006681:张舒婷=============");
            System.out.println("       1------------- 数组的最值和求和");
            System.out.println("       2------------- 商城库存清单");
            System.out.println("       3------------- 数组的排序和查找");
            System.out.println("       4------------- 一组不重复的整数");
            System.out.println("       0------------- 退出");
            System.out.println("===========================================");
            System.out.print("请输入您的选择：");
            int num = scan.nextInt();
            switch(num){
                case 1:
                    Array6681.main(null);
                    System.out.println(" ");
                    break;
                case 2:
                    StoreList6681.main(null);
                    break;
                case 3:
                    ArraySortAndSearch6681.main(null);
                    break;
                case 4:
                    Datas6681.main(null);
                    System.out.println(" ");
                    break;
                case 0:
                    isFlag = false;
                    break;
            }
        }
    }

}
